#if ! defined(OUTILS_H)
#define OUTILS_H

#include <string>
#include <sstream>


#define NEURONES_ENTREE 10
#define NEURONES_INTER 20
#define NEURONES_SORTIE 4


#define TIME_STEP 64

#define BAUDRATE B9600
#define DEVICE "/dev/ttyUSB0"

using namespace std;

/*struct structInfosSortie {
  float xBalle;
  float yBalle;
  int butMarque;
  bool depassement;
};*/

struct structInfosAcqIA {

};



inline void debug(string texte)
{
   #ifdef DEBUG
   cout << "[DEBUG]" << texte << endl;
   #endif
}

inline string FloatToString(float value)
{
  std::ostringstream oss;
  oss << value;

  string ma_string = oss.str();

  return ma_string;

}

inline string IntToString(int value)
{
  std::ostringstream oss;
  oss << value;

  string ma_string = oss.str();

  return ma_string;

}

#endif
